| Conditions | 2 | 
| Total Lines | 11 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import { Inject } from '@nestjs/common'; | 
            ||
| 13 | |||
| 14 |   public async execute(command: DeleteContactCommand): Promise<void> { | 
            ||
| 15 |     const { id } = command; | 
            ||
| 16 | |||
| 17 | const contact = await this.contactRepository.findOneById(id);  | 
            ||
| 18 | |||
| 19 |     if (!contact) { | 
            ||
| 20 | throw new ContactNotFoundException();  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | await this.contactRepository.remove(contact);  | 
            ||
| 24 | }  | 
            ||
| 26 |